package sh.wnxy.wn38.service.impl;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import sh.wnxy.wn38.entity.Img;
import sh.wnxy.wn38.mapper.ImgMapper;
import sh.wnxy.wn38.service.IImgService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wn38
 * @since 2021-07-14
 */
@Slf4j
@Service
public class ImgServiceImpl extends ServiceImpl<ImgMapper, Img> implements IImgService {

    private ImgMapper imgMapper;

    @Autowired
    public void setImgMapper(ImgMapper imgMapper){
        this.imgMapper=imgMapper;
    }

    @Override
    public List<Img> listImgBySpotId(Integer id) {
        log.warn(id+"");
        List<Img> imgs = imgMapper.listImgBySpotId(id);
        return imgs;
    }
}
